﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace ecommerce2011.Models
{
    public class ProductosEcommerceEntities : DbContext
    {
        public DbSet<City> City { get; set; }
        public DbSet<Product> Product { get; set; }
        public DbSet<AccommodationRate> AccommodationRate { get; set; }
        public DbSet<CityRate> Tarifa_City { get; set; }
        public DbSet<ShowRate> Tarifa_Show { get; set; }
        public DbSet<TransportationRate> Tarifa_Transporte { get; set; }

        //public override void OnModelCreating(ModelBuilder modelBuilder) {
        //    modelBuilder.Entity<Product>.HasOptional<AccommodationRate>(p => p.AccommodationRate)
        //        .WithOptionalPrincipal();
        //} 
    }
}